hjc黄金城集团 - 黄金城xhjc官方网站(中国)有限公司

[8] ErrorException in Cases.php line 96

未定义数组索引: cases_type_id

  1. $next = $next ? $next : array('cases_title' => '没有了,这是最后一条', 'id' => $id);
  2. $products['prev'] = $prev;
  3. $products['next'] = $next;
  4. $casesTypeRes = Db::name('cases_type')->where('pid', 0)->select();
  5. foreach ($casesTypeRes as $key => $value) {
  6. $casesTypeRes[$key]['childs'] = $this->casesType($value['id']);
  7. }
  8. $pid = Db::name('cases_type')->field('pid,cases_type_name')->where('id', $products['cases_type_id'])->find();
  9. $randomProduct = $this->randomProduct($products['cases_type_id']);
  10. $askRes = $this->ask();
  11. $goodServices = $this->goodService();
  12. $this->assign(array(
  13. 'products' => $products,
  14. 'casesTypeRes' => $casesTypeRes,

Call Stack

  1. in Cases.php line 96
  2. at Error::appError(8, 'Undefined index: cas...', '/www/wwwroot/www.sy0...', 96, ['id' => '323', 'products' => ['prev' => ['id' => 322, 'cases_title' => '职员椅', 'cases_keywords' => '职员椅', ...], 'next' => ['id' => 324, 'cases_title' => '高背椅', 'cases_keywords' => '高背椅', ...]], 'prev' => ['id' => 322, 'cases_title' => '职员椅', 'cases_keywords' => '职员椅', ...], ...]) in Cases.php line 96
  3. at Cases->casesShow()
  4. at ReflectionMethod->invokeArgs(object(Cases), []) in Container.php line 395
  5. at Container->invokeReflectMethod(object(Cases), object(ReflectionMethod), ['id' => '323', 'convert' => false]) in Module.php line 131
  6. at Module->think\route\dispatch\{closure}(object(Request), object(Closure), null)
  7. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  8. at Middleware->think\{closure}(object(Request))
  9. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  10. at Middleware->dispatch(object(Request), 'controller') in Module.php line 136
  11. at Module->exec() in Dispatch.php line 168
  12. at Dispatch->run() in App.php line 432
  13. at App->think\{closure}(object(Request), object(Closure), null)
  14. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  15. at Middleware->think\{closure}(object(Request))
  16. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  17. at Middleware->dispatch(object(Request)) in App.php line 435
  18. at App->run() in index.php line 21

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_ACCEPT_ENCODING gzip
HTTP_ACCEPT */*
HTTP_HOST www.sy021.com
HTTP_USER_AGENT Mozilla/5.0 (compatible; MJ12bot/v1.4.8; http://mj12bot.com/)
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME www.sy021.com
SERVER_PORT 443
SERVER_ADDR 172.19.71.10
REMOTE_PORT 43002
REMOTE_ADDR 104.206.148.142
SERVER_SOFTWARE nginx/1.17.10
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/www.sy021.com/public
DOCUMENT_URI /index.php
REQUEST_URI /products_show/id/323.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/products_show/id/323.html
SCRIPT_FILENAME /www/wwwroot/www.sy021.com/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1718198656.0139
REQUEST_TIME 1718198656
Environment Variablesempty
ThinkPHP Constantsempty
Baidu
sogou